package com.superbytecode.cloud.example.albb.controller;

import com.superbytecode.cloud.example.albb.service.TestSentinelService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: beacon-cloud
 * @Package: com.superbytecode.cloud.example.albb.controller
 * @ClassName: TestSentinelController
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/11/4 17:11
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.com Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@RestController
@RequestMapping("/sentinel")
public class TestSentinelController {
    @Resource
    private TestSentinelService testSentinelService;

    //
    @PostMapping("/test")
    public Object testRemoteCall(@RequestBody Map<String, Object> params) {
        return testSentinelService.testRemoteCall(params);
    }

}